package com.itheima.thread;

public class Test03 {

    public static void main(String[] args) {
        Mythread thread1 = new Mythread();
        thread1.setName("线程1");
        thread1.start();//开启线程才能运行多线程
        Mythread thread2 = new Mythread();
        thread2.setName("线程2");
        thread2.start();//开启线程才能运行多线程
        //start方法 两个功能: 开启线程     调用run方法

        System.out.println("看看我打印到哪里去了");


    }
}
